﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="RemoveMovieScheduleUserControl.ascx.cs" Inherits="MBSPL.UserControls.MovieScheduleUserControl.RemoveMovieScheduleUserControl" %>
<style type="text/css">
    .style1
    {
        width: 85px;
    }
    .style2
    {
        width: 85px;
        height: 26px;
    }
    .style3
    {
        height: 26px;
    }
</style>
<table>
    <tr>
        <td class="style1">Movie</td>
        <td>
            <asp:DropDownList ID="MovieDropDownList" runat="server" 
                onselectedindexchanged="MovieDropDownList_SelectedIndexChanged">
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td class="style1">Cinema</td>
        <td>
            <asp:DropDownList ID="CinemaDropDownList" runat="server" 
                onselectedindexchanged="CinemaDropDownList_SelectedIndexChanged">
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td class="style2">Screen</td>
        <td class="style3">
            <asp:DropDownList ID="ScreenDropDownList" runat="server" 
                onselectedindexchanged="ScreenDropDownList_SelectedIndexChanged">
            </asp:DropDownList>
        </td>
    </tr>
    
    <tr>
    <td class="style1"></td>
        <td>
            <asp:GridView ID="MovieScheduleGridView" runat="server" AllowPaging="True" 
                AutoGenerateColumns="False" CellPadding="4" 
                DataSourceID="MovieScheduleDataSource" ForeColor="#333333" GridLines="None">
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                    <asp:CommandField ShowSelectButton="True" />
                    <asp:BoundField DataField="MovieScheduleID" HeaderText="MovieScheduleID" 
                        SortExpression="MovieScheduleID" />
                    <asp:BoundField DataField="StartDate" HeaderText="StartDate" 
                        SortExpression="StartDate" />
                    <asp:BoundField DataField="EndDate" HeaderText="EndDate" 
                        SortExpression="EndDate" />
                    <asp:BoundField DataField="ShowStartTime" HeaderText="ShowStartTime" 
                        SortExpression="ShowStartTime" />
                    <asp:BoundField DataField="ShowEndTime" HeaderText="ShowEndTime" 
                        SortExpression="ShowEndTime" />
                    <asp:BoundField DataField="WeekDateFare" HeaderText="WeekDateFare" 
                        SortExpression="WeekDateFare" />
                    <asp:BoundField DataField="WeekEndFare" HeaderText="WeekEndFare" 
                        SortExpression="WeekEndFare" />
                    <asp:CheckBoxField DataField="IsDeleted" HeaderText="IsDeleted" 
                        SortExpression="IsDeleted" />
                    <asp:BoundField DataField="CinemaID" HeaderText="CinemaID" 
                        SortExpression="CinemaID" />
                    <asp:BoundField DataField="ScreenNo" HeaderText="ScreenNo" 
                        SortExpression="ScreenNo" />
                    <asp:BoundField DataField="MovieID" HeaderText="MovieID" 
                        SortExpression="MovieID" />
                </Columns>
                <EditRowStyle BackColor="#7C6F57" />
                <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#E3EAEB" />
                <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#F8FAFA" />
                <SortedAscendingHeaderStyle BackColor="#246B61" />
                <SortedDescendingCellStyle BackColor="#D4DFE1" />
                <SortedDescendingHeaderStyle BackColor="#15524A" />
            </asp:GridView>
            <asp:ObjectDataSource ID="MovieScheduleDataSource" runat="server" 
                SelectMethod="GetMovieScheduleByMovieAndCinemaAndTheatreNo" 
                TypeName="MBSBusinessEntities.MovieScheduleBE">
                <SelectParameters>
                    <asp:Parameter Name="MovieID" Type="Int32" />
                    <asp:Parameter Name="CinemaID" Type="Int32" />
                    <asp:Parameter Name="ScreenNo" Type="Int32" />
                </SelectParameters>
            </asp:ObjectDataSource>
        </td>
    </tr>
</table>